package com.woniu.utils;

/**
 * 浏览器信息工具类
 **/
public class BrowserFluxUtil {

    /**
     * 获取User-Agent
     * @param request
     * @return
     */
    public static String getUserAgent(org.springframework.http.server.reactive.ServerHttpRequest request) {
        return request.getHeaders().getFirst("User-Agent");
    }

    /**
     * 获取User-Agent
     * @param request
     * @return
     */
    public static String getUserAgent(org.springframework.http.server.ServerHttpRequest request) {
        return request.getHeaders().getFirst("User-Agent");
    }

}
